package cn.hls.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import cn.hls.dao.GoodsCategoryDao;
import cn.hls.entity.GoodsCategory;
import cn.hls.entity.vo.PageInfo;
import cn.hls.service.GoodsCategoryService;
/**
 *@fileName: GoodsCategoryDaoImpl
 *@package: cn.christ.dao.impl
 *@Description: 场地数据操作接口实现类
 *@author: yinghui.zhang
 *@email: uuhui@163.com
 *@date: 2015-8-12
 */
@Component("goodsCategoryService")
public class GoodsCategoryServiceBean extends BaseServiceBean<GoodsCategory> implements GoodsCategoryService {

	@Resource(name="goodsCategoryDao")
	private GoodsCategoryDao dao;
	@Override
	public PageInfo<GoodsCategory> loadGoodsCategoryInfo(
			PageInfo<GoodsCategory> pageInfo, GoodsCategory entity)
			throws Exception {
		return dao.loadGoodsCategoryInfo(pageInfo, entity);
	}

	@Override
	public GoodsCategory loadGoodsCategoryByCodeOrName(String code, String name)
			throws Exception {
		return dao.loadGoodsCategoryByCodeOrName(code, name);
	}

	@Override
	public List<GoodsCategory> loadGoodsCategoryInfo(GoodsCategory entity)
			throws Exception {
		return dao.loadGoodsCategoryInfo(entity);
	}

	 
}
